import request from "@/utils/request";

const DEPT_BASE_URL = "/account";

export function getAccountList(data) {
  return request({
    url: `${DEPT_BASE_URL}/list`,
    method: "post",
    data: data,
  });
}

export function exportAccount(data, config) {
  return request({
    url: `${DEPT_BASE_URL}/export`,
    method: "post",
    data: data,
    ...config,
  });
}

export function delAccount(data) {
  return request({
    url: `${DEPT_BASE_URL}/del`,
    method: "post",
    data: data,
  });
}

export function getExportList(data) {
  return request({
    url: `${DEPT_BASE_URL}/export/list`,
    method: "post",
    data: data,
  });
}
